package com.huawei.appgallery.forum.base.card.bean;

import com.huawei.appgallery.jsonkit.api.JsonBean;
import java.io.Serializable;
import java.util.List;

public class Options extends JsonBean implements Serializable {
    private static final long serialVersionUID = -3521473388465257900L;
    List<OptionItem> optionItems_;
    String optionType_;

    public static class OptionItem extends JsonBean implements Serializable {
        static final int DEFAULT = 1;
        private static final long serialVersionUID = -3802849374444148595L;
        int isDefault_;
        String itemId_;
        String itemName_;
        String itemVal_;

        public String ˊ() {
            return this.itemName_;
        }

        public boolean ˋ() {
            return this.isDefault_ == 1;
        }

        public String ˏ() {
            return this.itemVal_;
        }
    }

    public List<OptionItem> ˎ() {
        return this.optionItems_;
    }

    public String ॱ() {
        if (this.optionItems_ != null) {
            for (OptionItem optionItem : this.optionItems_) {
                if (optionItem.ˋ()) {
                    return optionItem.ˏ();
                }
            }
        }
        return null;
    }
}
